﻿@model IEnumerable<Common.Views.StatisticalReportView>

@{
    ViewBag.Title = "MyCart";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h3>Products Average Rating</h3>
<hr />

<table>
    <tr>
        <th>
            Product ID
        </th>
        <th>
            Product Name
        </th>        
        <th>
        Average Rating
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.productID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ProductName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.mostRated)
        </td>       
    </tr>
}

</table>


